home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-2.iso
/
extra_2
/
flmgmtcl.zip
/
PATHITER.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1995-11-02
|
2KB
|
79 lines
// ==========================================================================
// Class Implementation : CPathIterator
// ==========================================================================
// Source file : pathiter.cpp
// Source : Periphere NV (F.Melendez & R.Mortelmans)
// Creation Date : 2nd November 1995
// Last Modification : 2nd November 1995
// //////////////////////////////////////////////////////////////////////////
#include "stdafx.h" // standard MFC include
#include "pathiter.h" // class specification
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNAMIC(CPathIterator, CObject)
#define new DEBUG_NEW
/////////////////////////////////////////////////////////////////////////////
// Definition of static members
// Data members -------------------------------------------------------------
// protected:
// private:
// Member functions ---------------------------------------------------------
// public:
CPathIterator::CPathIterator()
: m_bValid(FALSE)
{
}
CPathIterator::IsItValid()
{
return m_bValid;
}
#ifdef _DEBUG
void CPathIterator::Dump(CDumpContext& dc) const
{
CObject::Dump(dc);
#ifdef WIN32
dc << TEXT("\nm_hFindFile : ") << m_hFindFile;
dc << TEXT("\nm_FindFileData : ") << (void*)&m_FindFileData;
#else
dc << TEXT("\nm_FileInfo : ") << (void*)&m_FileInfo;
#endif
dc << TEXT("\nm_bValid : ") << (WORD)m_bValid;
}
void CPathIterator::AssertValid() const
{
CObject::AssertValid();
}
#endif
CPathIterator::~CPathIterator()
{
#ifdef WIN32
if (m_hFindFile != NULL)
FindClose(m_hFindFile);
#endif
}
// private:
// Message handlers ---------------------------------------------------------
// ==========================================================================